HanaCTS MCU Controller communication driver is the driver to communicate with MCU controller of HanaCTS in Korea.
<Figure 1> is read setting example of HanaCTS MCU controller communication driver
![]() |
<Figure 1> Read setting example of HanaCTS MCU Controller driver |
Please input Device setting of <Figure 1> Connection type; Com Port(COM1), Baud Rate(4800), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively.
In protocol option part, you can set the numberl of Group Data Saving Gap after Relay Data for STATUS command (default = 36).
HanaCTS MCU Controller communication drvier read schedule
Read schedule setting parameters of HanaCTS MCU Controller communicatoin drvier are as follows
1) Station – 0 ~ 63 station number. (MCU ID)
2) Read Command – Command = fixed to STATUS.
3) Read Start Address – Don't care. (fixed to 0)
4) Save start address for Communication Server - Saving start address of Communication Server.
5) Read Szie – read 71 data ( fixed to 1)
Saving address of Group data and Memory size differs follwing the numberof Group Data Saving Gap after Relay Data for STATUS command in protocol option.
Read Schedule example)
READ, 1, STATUS, 0, 0, 1,
<Table 1> is a data saving address and contets of HanaCTS MCU Controller communication driver.
Stored Values |
Contents |
Start Add + 0 ~ 63: RCU 0 ~ 63 ' s Status of MCU equipment with the Station ID, (Word) | 0 bit: Don't care. 1 bit: The RCU's Rleay no.1 Status ON(1)/OFF(0) 2 bit: The RCU's Rleay no.2 Status ON(1)/OFF(0) 3 bit: The RCU's Rleay no.3 Status ON(1)/OFF(0) 4 bit: The RCU's Rleay no.4 Status ON(1)/OFF(0) 5 bit ~ 8 bit: The RCU's communication Status Available(1)/ Not Available(0) 9 bit ~ F bit: Don't care. |
Start Add + 63 + GAP in Option + 1 ~ 7 : GROUP 0 ~ 63 ' s Status of MCU equipment with the Station ID (10 bit) | Group Data saving Address + 0 's 0 bit: Group 0 Status ON(1)/OFF(0) Group Data saving Address + 0 's 1 bit: Group 1 Status ON(1)/OFF(0) ¡¦, Group Data saving Address + 0 's 9 bit: Group 9 Status ON(1)/OFF(0) Group Data saving Address + 1 's 0 bit: Group 10 Status ON(1)/OFF(0) Group Data saving Address + 1 's 1 bit: Group 11 Status ON(1)/OFF(0) ¡¦, Group Data saving Address + 6 's 3 bit: Group 63 Status ON(1)/OFF(0) Group Data saving Address + 6 's 4 ~ F bit: Don't care. |
<Table 1> Stored values and save contents of HanaCTS MCU Controller communication driver |
HanaCTS MCU Controller communication driver stores the same data in WORD/DWORD/FLOAT memory, but the data formats are different.
If you click the icon
in protocol option part, you can see the dialogue
box such as <Figure2>, you can also set read schedule by using this part.
![]() |
<Figure 2> Example of HanaCTS MCU Controller communicatoin driver's Option dialogue box |
You can also set read schedule by using
,
,
button and listbox of <Figure 2>.
Also, you can set Gap to save Group Data in the memory after saving Relay Data in 'Group Data Saving Gap after Relay Data for STATUS Command' (default = 36) .
![]() |
<Figure 3> Example of HanaCTS MCU Controller communication driver's read schedule Add/Edit dialogue box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can set HanaCTS MCU Controllercommunication driver by using write settings.
Digital write
Digital write setting parameters are as follows:
1) Port Port
no.
(0~255)
2) Station 0 ~ 63 station number. (MCU ID)
3) Address Write address according to write data type in Extra1;
RELAY = 2 digit of front - ID number of the RCU to cotorl (decimal), 1 digit of back - Relay 1 ~ 4 of the RCU to control
GROUP = 0~63 - Group number when GROUP write command to control
4)
Extra1 Write data type
RELAY: Control single Relay 1 ~ 4 of the RCU
GROUP: Control RCU and Relay registered in the Group
5) Extra2 Retention time (sec)
0: Immediately (no retention time)
1~... : n Retains the relay for n sec(s).
Write example 1)
PORT : 0 STATION : 1 ADDRESS : 001 EXTRA1 : RELAY EXTRA2 : 0
If you set as above and output the digital value, you can control(ON/OFF) value for the Relay no.1 in the RCU 0 of MCU station ID 1 which connected to no.0 port immediately .
Write example 2)
PORT : 0 STATION : 1 ADDRESS : 634 EXTRA1 : RELAY EXTRA2 : 4
If you set as above and output the digital value, you can control(ON/OFF) value for the Relay no.4 in the RCU 63 of MCU station ID 1 which connected to no.0 port retaining for 4 seconds.
Write example 3)
PORT : 0 STATION : 1 ADDRESS : 0 EXTRA1 : GROUP EXTRA2 : 0
If you set as above and output the digital value, you can control(ON/OFF) value for the list of items in GROUP no.0 of MCU station ID 1 which connected to no.0 port immediately .
Write example 4)
PORT : 0 STATION : 1 ADDRESS : 63 EXTRA1 : GROUP EXTRA2 : 4
If you set as above and output the digital value, you can control(ON/OFF) value for the list of items in GROUP no.63 of MCU station ID 1 which connected to no.0 port immediately retaining for 4 seconds.
Analog Write
Analog write and digital write have the same setting parameters except output value (0 or 1).